<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', "TagController@index");
//Route::get('/tmp', "TagController@getTemp");

Route::get('auth', 'CommonController@auth')->name('auth');
Route::get('logout', 'CommonController@logout')->name('logout');

//input
Route::get('input', "InputController@index")->name('input');
Route::get('getIndexName', "InputController@getIndexNameList")->name('get_index_name');
Route::get('getIndexData', "InputController@getIndexDataList")->name('get_index_data');
Route::get('getIndex', "InputController@getIndex")->name('get_index');
Route::post('add_index_name', 'InputController@addIndexName')->name('add_index_name');
Route::post('add_index_data', 'InputController@addIndexData')->name('add_index_data');

//tag
Route::any('tag', "TagController@index")->name('tag');
Route::any('add_tag', "TagController@create")->name('add_tag');
Route::post('destroy', "TagController@destroy")->name('destroy');
Route::get('tag_edit', "TagController@edit")->name('tag_edit');
Route::get('change_category', "TagController@change_category")->name('change_category');